﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" AutoEventWireup="true"
    CodeFile="frmJ_TraineeInterviewList.aspx.cs" Inherits="JOINT_frmJ_TraineeInterviewList"
    Culture="ja-JP" UICulture="ja" Title="来社後　情報確認・修正" %>

<%--Culture="ja-JP" UICulture="ja"--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=80);
            opacity: 0.8;
            z-index: 10000;
        }
    </style>
    <link href="../Style/JsStyle.css" rel="stylesheet" type="text/css" />
    <link href="../Style/Style.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery.min.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="../js/jquery.maxlength.js"></script>

    <script language="javascript" type="text/javascript" src="../js/jquery.maskedinput.js"></script>
    <script src="../js/jquery.blockUI.js" type="text/javascript"></script>
    <script src="../js/Validation.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function(e) {

         
            RegisterPage();

        });
        function RegisterPage() {
            var hid = $('input[id$=HiddenField1]').val();
            if (hid == "1")
                document.title = "来社時　情報確認・修正";
            else if (hid == "2")
                document.title = "来社後　情報確認・修正";

            //var ob = $('#<%=ddl_来社時間時.ClientID %>').attr('id');
            //document.getElementById(ob).style.textAlign = 'center';

            ////////////////////////////////////////////BO SUNG cua THANH/////////////////////////////////////////
            /////////////////////////////////////////////////////////////////////////////////////////////////////
            registerControlToValidation("validation");
            formatDate("css_text_calender", "/");
            registerEnterEvent("enter", "<%= ddl_来社日.ClientID %>", 3);

        }
    
    </script>

    <div class="maindiv1">
        <div class="div_content">
            <div class="div_height20">
                <asp:HiddenField ID="HiddenField1" runat="server" />
            </div>
            
            <%--<asp:UpdatePanel ID="MyUpdatePnl" runat="server">
           <<Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddl_来社日" />
            </Triggers>
            <ContentTemplate>--%>
            <div class="detail-admin-row">
                <span class="detail-admin-label125">来社日 :</span>
                 <asp:DropDownList ID="ddl_来社日" runat="server" Font-Names="MS UI Gothic" 
                            CssClass="enter validation dropdownlist width2" AutoPostBack="True" 
                            onselectedindexchanged="ddl_来社日_SelectedIndexChanged">
                            <asp:ListItem Value="-1" Text="[選択]"></asp:ListItem>
                        </asp:DropDownList>
                        <span class="required-field">*</span>
              
                
                
                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddl_来社日"
                    ErrorMessage="" Display="None" SetFocusOnError="False" InitialValue="-1"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" Width="260px"
                    TargetControlID="RequiredFieldValidator1" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                    WarningIconImageUrl="~/Images/warning.png">
                </ajaxToolkit:ValidatorCalloutExtender>
              
            </div>
<%--            </ContentTemplate>
            </asp:UpdatePanel>--%>
            <div class="detail-admin-row">
                <span class="detail-admin-label125">来社時間 :</span>
                <%--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
                <%--<asp:DropDownList ID="ddl_来社時間時" runat="server" CssClass="ddlJ_TraineeSearch" Style="text-align: center;"--%>
                <asp:DropDownList ID="ddl_来社時間時" runat="server" Font-Names="MS UI Gothic" CssClass="enter validation dropdownlist width1"
                    Font-Size="9.5pt" >
                    <asp:ListItem Value="-1" Selected="True">[選択]</asp:ListItem>
                 
                </asp:DropDownList>
                <asp:DropDownList ID="ddl_来社時間分" runat="server" 
                    CssClass="enter validation dropdownlist width1" Font-Names="MS UI Gothic" Font-Size="9.5pt">
                    <asp:ListItem Selected="True" Value="-1">[選択]</asp:ListItem>
                  
                </asp:DropDownList>
                <span class="required-field">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage=""
                    SetFocusOnError="False" Display="None" ControlToValidate="ddl_来社時間時" InitialValue="-1"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" Width="260px"
                    TargetControlID="RequiredFieldValidator2" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                    WarningIconImageUrl="~/Images/warning.png">
                </ajaxToolkit:ValidatorCalloutExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage=""
                    SetFocusOnError="False" Display="None" ControlToValidate="ddl_来社時間分" InitialValue="-1"></asp:RequiredFieldValidator>
                <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" Width="260px"
                    TargetControlID="RequiredFieldValidator3" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                    WarningIconImageUrl="~/Images/warning.png">
                </ajaxToolkit:ValidatorCalloutExtender>
            </div>            
            

            
            <div class="div_height20">
            </div>
            <div class="btn_next">
                <%--<asp:Button ID="btn決定" runat="server" Text="決定" CssClass="btn" OnClick="btn決定_Click"
                    OnClientClick="javascript:focusToControlErr();" />--%>
            </div>
            <div class="div_height20">
            </div>
        </div>
        <div class="Header4">
        </div>
        <div class="div_grv" style="width: 98%">
            <asp:GridView ID="grv" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="true"
                CssClass="mGrid" OnPageIndexChanging="grv_PageIndexChanging" PageSize="10" Font-Names="MS UI Gothic"
                PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" DataKeyNames="myID"
                OnRowDataBound="grv_RowDataBound">
                <Columns>
                    <%--PostBackUrl='<%# ProcessLinks( Eval("myID")) %>'--%>
                    <asp:TemplateField HeaderText="氏名" SortExpression="氏名">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtn_氏名" runat="server" Text='<%# Bind("氏名") %>' OnClick="lbtn_氏名_Click"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="ID番号" DataField="ID番号" />
                    <asp:BoundField HeaderText="生年月日" DataField="生年月日" DataFormatString="{0:yyyy年MM月dd日}"
                        ItemStyle-HorizontalAlign="Left">
                        <ItemStyle HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <%--<asp:BoundField HeaderText="組合名" DataField="組合名" />
                    <asp:BoundField HeaderText="企業名" DataField="企業名" />--%>
                     <asp:TemplateField HeaderText="組合名" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label runat="server" ISD ="lbl_組合名" Text='<%# ShowTextLength(Eval("組合名")) %>' ToolTip='<%# Eval("組合名") %>' ></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="企業名" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" ISD ="lbl_企業名" Text='<%# ShowTextLength(Eval("企業名")) %>' ToolTip='<%# Eval("企業名") %>' ></asp:Label>  
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="在学状態" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%--<asp:Label runat="server" ID="lbl" Text='<%# ConvertType2(Eval("在学状態")) %>'></asp:Label>--%>
                            <asp:CheckBox ID="CheckBox1" Enabled="false" runat="server" Checked='<%# ConvertType(Eval("在日親族有無")) %>' />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="受付状態" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:DropDownList ID="ddl_受付状態" Enabled="true" runat="server" AutoPostBack="True"
                                OnSelectedIndexChanged="ddl_受付状態_SelectedIndexChanged">
                            </asp:DropDownList>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <%--<asp:BoundField HeaderText="myID" DataField="myID" Visible="false" />--%>
                    
                    <asp:TemplateField HeaderText="myID" Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="lblmyID" runat="server" Text='<%# Eval("myID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle CssClass="pgr"></PagerStyle>
                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
            </asp:GridView>
        </div>
    </div>
    <div class="div_height20">
    </div>
    <%---Model Popup--%>
    <div>
        <asp:Button ID="btnShowPopup1" runat="server" Style="display: none;" />
        <ajaxToolkit:ModalPopupExtender ID="ModalPopupMessageBox1" runat="server" TargetControlID="btnShowPopup2"
            CancelControlID="btnCancel" PopupControlID="pnlModalPopupMessageBox1" BackgroundCssClass="modalBackground">
        </ajaxToolkit:ModalPopupExtender>
        <asp:Panel ID="pnlModalPopupMessageBox1" runat="server" Style="display: none">
            <table width="100%" style="border: Solid 3px #FFFFFF; width: 400px; height: 100px"
                cellpadding="0" cellspacing="0">
                <tr style="background-color: White">
                    <td style="height: 20px; color: White; font-weight: bold; font-size: small" align="center">
                    </td>
                </tr>
                <tr style="background-color: White">
                    <td>
                    </td>
                </tr>
                <tr style="background-color: White">
                    <td align="center">
                        <asp:Label
                            ID = "lblTextMessageShow"
                            runat="server">
                        </asp:Label>
                    </td>
                </tr>
                <tr style="background-color: White">
                    <td align="center">
                        <asp:Button ID="btnOK" OnClick="btnOK_Click" runat="server" Text="はい" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="いいえ" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <div>
        <asp:Button ID="btnShowPopup2" runat="server" Style="display: none;" />
        <ajaxToolkit:ModalPopupExtender ID="ModalPopupMessageBox2" runat="server" TargetControlID="btnShowPopup2"
            CancelControlID="btnCancel1" PopupControlID="pnlModalPopupMessageBox2" BackgroundCssClass="modalBackground">
        </ajaxToolkit:ModalPopupExtender>
        <asp:Panel ID="pnlModalPopupMessageBox2" runat="server" Style="display: none">
            <table width="100%" style="border: Solid 3px #FFFFFF; width: 300px; height: 200px"
                cellpadding="0" cellspacing="0">
                <tr style="background-color: White">
                    <td colspan="3" style="height: 10%; color: Black; font-weight: bold; font-size: x-large"
                        align="center">
                        受付状態
                    </td>
                </tr>
                <tr style="background-color: White">
                    <td>
                        来社せず理由内容
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr style="background-color: White">
                    <td colspan="3">
                        <asp:TextBox ID="txt_現住所" runat="server" Width="300px" Height="50px" MaxLength="1000"
                            Style="resize: none;" Font-Names="MS UI Gothic" CssClass="textarea" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr style="background-color: White">
                    <td colspan="3" align="center">
                        <asp:Button ID="btn_保存" runat="server" OnClick="btn_保存_Click" Text="保存" />
                        <asp:Button ID="btnCancel1" runat="server" Text="Cancel" Style="display: none;" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
</asp:Content>
